home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / rcs / screen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.2 KB  |  129 lines

  1. head    1.2;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.2; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.2
  10. date    97.07.14.04.25.13;    author dlorre;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    96.08.22.02.05.49;    author dlorre;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @Oui.lib -- Object User Interface
  22. Projet créé en 1994
  23. Auteur: Dominique Lorre
  24. @
  25.  
  26.  
  27. 1.2
  28. log
  29. @*** empty log message ***
  30. @
  31. text
  32. @// $Id$
  33. #ifndef CLASS_SCREEN_H
  34. #define CLASS_SCREEN_H
  35.  
  36. #ifndef EXEC_TYPES_H
  37. #include <exec/types.h>
  38. #endif
  39.  
  40. #ifndef GRAPHICS_RASTPORT_H
  41. struct RastPort ;
  42. #endif
  43.  
  44. #ifndef GRAPHICS_TEXT_H
  45. struct TextFont ;
  46. #endif
  47.  
  48. #ifndef INTUITION_SCREENS_H
  49. struct Screen ;
  50. struct DrawInfo ;
  51. #endif
  52.  
  53. #ifndef UTILITY_TAGITEM_H
  54. struct TagItem ;
  55. #endif
  56.  
  57.  
  58.  
  59. #define GREEN_PEN       0   // Green color
  60. #define RED_PEN         1   // Red color
  61. #define WHITE_PEN       2   // White color
  62. #define BLACK_PEN       3   // Black color
  63. #define GFILL_PEN       4   // Fill color on cstring gadget
  64. #define GBORDER_PEN     5   // Extra Border color (not used)
  65. #define BUTTONFILL_PEN  6   // Fill color on fbutton gadget
  66. #define NUM_XPENS       7
  67.  
  68. class screen {
  69.     UWORD       *defpens ;
  70.     void setxpens(UWORD *p) ;
  71.     void setdefpens() ;
  72. public:
  73.     BOOL        owner ;
  74.     BOOL        status ;
  75.     APTR        vi ;
  76.     WORD        winbarheight ;
  77.     Screen      *scr ;
  78.     RastPort    *rp ;
  79.     TextFont    *font ;
  80.     short       left, top, width, height ;
  81.     short       xratio, yratio ;
  82.     DrawInfo    *drawinfo ;
  83.     UWORD        *xpens ;
  84.     LONG        error ;
  85.     screen(UWORD *xp, STRPTR name) ;
  86.     screen(UWORD *xp, TagItem *tags) ;
  87.     screen(UWORD *xp, ULONG tdata, ...) ;
  88.     ~screen() ;
  89.     void init() ;
  90.     void getsize() ;
  91.     void front() ;      // Standard depth arrange
  92.     void back() ;
  93.     void cfront() ;     // Family depth arrange (V39)
  94.     void cback() ;
  95.     void beep() ;
  96. };
  97.  
  98. #endif
  99. @
  100.  
  101.  
  102. 1.1
  103. log
  104. @Initial revision
  105. @
  106. text
  107. @d1 1
  108. d28 7
  109. a34 7
  110. #define GREEN_PEN       0
  111. #define RED_PEN         1
  112. #define WHITE_PEN       2
  113. #define BLACK_PEN       3
  114. #define GFILL_PEN       4
  115. #define GBORDER_PEN     5
  116. #define GHIGHFILL_PEN   6
  117. d39 2
  118. d46 1
  119. a46 1
  120.     Screen      *screen ;
  121. d54 3
  122. a56 3
  123.     screen(STRPTR name) ;
  124.     screen(TagItem *tags) ;
  125.     screen(ULONG tdata, ...) ;
  126. a64 1
  127.     void setxpens(UWORD *p) ;
  128. @
  129.